package org.example;

//import java.sql.SQLException;

import org.example.dao.LogsDao;
import org.example.pojo.User;
import org.example.view.ManageView;
import org.example.view.MeneView;
import org.example.view.UserView;

//程序入口：整个系统只有一个程序入口
public class StudentApplication {
    public static void main(String[] args) {

        new ManageView().showLoadingAnimation();
        try {
            User user = new UserView().welcome();
            if (user == null) {
//                System.out.println("欢迎下次使用！！！");
                return;
            }
            new MeneView().showMainMenu(new java.util.Scanner(System.in), user.getId(), user.getUsername());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
